<?php
class Form_Login extends Apps_Form {
	public function init() {
        $username = $this->createElement('text','username');
        $username->setLabel('Use name')
                 ->setRequired(true);

        $password = $this->createElement('password','password');
        $password->setLabel('Password')
                 ->setRequired(true);

        $submit = new Zend_Form_Element_Submit(
        		'submit',
        		array(
        				'label' => 'Login',
        				'class' => 'btn btn-primary'
        		)
        );
        $reset  = new Zend_Form_Element_Reset(
        		'reset',
        		array(
        				'label' => 'Reset',
        				'class' => 'btn'
        		)
        );

        $this->setLegend('Login to Administrator');
		$this->addElements(array(
					$username,
					$password
				));
		$this->addActionGroup(array($submit, $reset));
		$this->makeup();
	}
}